03. Exercise 1: Solution

**Objective: **Your task is to identify the main reinforcement learning components for the scenario defined above.


Agent: Who is the agent in this scenario? The Human


State Representation: What information needs to be included in the state for the agent to make informed decisions? Describe the components of the state.

  • Current Position [(x, y) coordinates] of the agent
  • Food locations: (-3, 4), (3, 3), (-3, 3)
  • Predator locations: (-5, -2)


Action Space: List the possible actions the agent can take in the environment

  • Step one unit up
  • Step one unit down
  • Step one unit left
  • Step one unit right


Reward: Define the rewards that will guide the agent’s behavior. Specify the rewards for finding food, being caught by a predator, and any other relevant events.

  • Some positive reward for finding food
  • e.g., +10 points when agent position = (-3, 4), or (3, 3), or (-3, 3)
  • Some negative reward for finding predator
  • e.g., -10 points when agent position = (-5, -2)